home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 820 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problem with stringcopy
  5. Date: Tue, 09 Jan 96 14:15:00 GMT
  6. Organization: none
  7. Message-ID: <821196900snz@genesis.demon.co.uk>
  8. References: <4clguu$9fs@eagle.novo.dk> <820933963snz@genesis.demon.co.uk> <4cq9dr$if9@ns.RezoNet.NET> <4crgg5$d71@news.iag.net>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4crgg5$d71@news.iag.net> jatmon@iag.net "John R Buchan" writes:
  15.  
  16. >or just use memcpy instead.  It would probably be faster, since it doesn't
  17. >check for a '\0' in the source.
  18.  
  19. Many compilers will generate efficient inline code for memcpy (and there
  20. may well be efficient CPU instructions to do it). Far fewer do so for strncpy.
  21.  
  22. -- 
  23. -----------------------------------------
  24. Lawrence Kirby | fred@genesis.demon.co.uk
  25. Wilts, England | 70734.126@compuserve.com
  26. -----------------------------------------
  27.